
export class Message {
    //类型 大分类
    type: MessageType;

    //指令 小分类
    cmd: MessageCmd;

    //消息
    content: any;


    constructor(type, cmd, content) {
        this.type = type;
        this.cmd = cmd;
        this.content = content;
    }


}

export enum MessageType {
    TypeUI = 0,
    TypeNPC,
    TypeEnemy
}

export enum MessageCmd {
    CmdHP = 0,
    CmdSkill,
    CmdProperty,
    CmdPackage,
}
